package com.example.mobile2021606163crw0506;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ShoppingActivity extends AppCompatActivity {

    private TextView tvShoppingTitle;
    private Button btnMainLiulang;
    private TextView tvMainDisplay;
    private Button btnMainQueding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shopping);
        initView();
        btnMainLiulang.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(ShoppingActivity.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }

    private void initView() {
        tvShoppingTitle = (TextView) findViewById(R.id.tv_shopping_Title);
        btnMainLiulang = (Button) findViewById(R.id.btn_main_liulang);
        tvMainDisplay = (TextView) findViewById(R.id.tv_main_display);
        btnMainQueding = (Button) findViewById(R.id.btn_main_queding);
    }
}